package com.chuanke.ckfamily.dao.user;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.chuanke.ckfamily.dao.user.model.Friend;
import com.chuanke.ckfamily.dao.user.model.UserRelation;
import com.weijie.core.BaseDao;

public interface UserRelationDao extends BaseDao<UserRelation> {
	/**
	 * 获取用户关系
	 * 
	 * @param param
	 * @return
	 * @throws Exception
	 */
	UserRelation getRelationship(@Param("param") Map<String, Object> param);

	/**
	 * 获取新添好友
	 * 
	 * @param param
	 * @return
	 * @throws Exception
	 */
	List<Friend> getNewFriends(@Param("param") Map<String, Object> param);

	/**
	 * 获取更新好友
	 * 
	 * @param param
	 * @return
	 * @throws Exception
	 */
	List<Friend> getUpdateFriends(@Param("param") Map<String, Object> param);

	/**
	 * 获取删除好友
	 * 
	 * @param param
	 * @return
	 */
	List<Friend> getRemovedFriends(@Param("param") Map<String, Object> param);

	void updateFriendRelation(@Param("param") Map<String, Object> param);
}